﻿
// Angular Imports
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { ModalModule } from 'ngx-bootstrap';
import { WebUploaderModule, WebUploaderConfig, Options, OptionsPick, OptionsThumb } from 'ngx-webuploader';
import { FormsModule } from '@angular/forms';
import { HttpModule, JsonpModule } from '@angular/http';
import { AbpModule, ABP_HTTP_PROVIDER } from '@abp/abp.module';
import { ServiceProxyModule } from '@shared/service-proxies/service-proxy.module';
import { SharedModule } from '@shared/shared.module';
import { API_BASE_URL } from '@shared/service-proxies/service-proxies';
import { AppConsts } from '@shared/AppConsts';
import { MicroClassListComponent } from './micro-class-list/micro-class-list.component';
import { MicroClassAddComponent } from './micro-class-add/micro-class-add.component';
import { ClassGroupListComponent } from './class-group-list/class-group-list.component';
import { ClassGroupAddComponent } from './class-group-add/class-group-add.component';
import { ClassGroupInfoComponent } from './class-group-info/class-group-info.component';
import { MicroClassInfoComponent } from './micro-class-info/micro-class-info.component';
import { DatepickerModule } from 'ngx-bootstrap/datepicker';

@NgModule({
    imports: [
        CommonModule,
        FormsModule,
        HttpModule,
        JsonpModule,
        DatepickerModule,
        ModalModule,
        AbpModule,
        ServiceProxyModule,
        WebUploaderModule.forRoot(<WebUploaderConfig>{
          // 全局默认Options配置
          options: <Options>{
            swf: '../../assets/webuploader-0.1.5/Uploader.swf'
          },
          // webuploader的存储路径
          path: '../../assets/webuploader-0.1.5/',
          // 依赖库
          dependentLib: '../../assets/zepto.js'
        }),
        SharedModule,
        RouterModule.forChild([
            { path: '', component: ClassGroupListComponent, pathMatch: 'full' }
        ])
    ],
    declarations: [
        ClassGroupListComponent,
        ClassGroupInfoComponent,
        ClassGroupAddComponent,
        MicroClassListComponent,
        MicroClassAddComponent,
        MicroClassInfoComponent
    ],
    exports: [
        ClassGroupListComponent,
        ClassGroupInfoComponent,
        ClassGroupAddComponent,
        MicroClassListComponent,
        MicroClassAddComponent,
        MicroClassInfoComponent
    ]
})
export class MicroClassModule {

}
